package top.pmwly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.pmwly.common.domain.UserSecurity;
import top.pmwly.common.domain.vo.MenuVo;
import top.pmwly.common.domain.vo.MyinfoVo;
import top.pmwly.common.param.UserLoginParam;
import top.pmwly.common.reslut.ReslutBean;
import top.pmwly.dao.pojo.SysUser;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author Herther
 * @since 2021-09-21
 */
public interface ISysUserService extends IService<SysUser> {

    /**
     * 登录返回token
     * @param userLoginParam
     * @return
     */
    ReslutBean login(UserLoginParam userLoginParam);


    /**
     * 根据用户名获取 用户信息
     * @param name
     * @return
     */
    UserSecurity getInfo(String name) ;

    /**
     * 前端获取用户对象
     */
    ReslutBean getMyinfoVo(String userName);

}
